package com.xcc.feign.modules.controller.serivce;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.xcc.common.entry.User;
import com.xcc.common.result.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author frosty
 * @description
 * @date 2019-11-08 08:09:30
 */
@RestController /*在其他项目中引用 可以不要*/
@Component  /*这个注解加上  是为了在其他项目里引用*/
public class UserFeignController  {
       @Autowired   /*没用 待删除*/
        private  UserFeignService userFeignService;
         @GetMapping("/add")
          public ResultBody register(User user) {
          System.out.println("add------?>");
          return userFeignService.register(user);
    }


}
